#include <cstdio>
#include <fstream>

int main() 
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");
	int n;
	input >> n;
	int x = 0, y = 0;
	int count = 0;
	for (int i = 1; i <= n; i++) 
	{
		output << x << " " << y << "\n";
		if (i % 2) 
		{
			++count;
		}
		switch (i % 4) 
		{
		case 0:
			y = y - count;
			break;
		case 1:
			x = x + count;
			break;
		case 2:
			y = y + count;
			break;
		case 3:
			x = x - count;
			break;
		}
	}
	return 0;
}